package com.cq.hd.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cq.hd.order.api.dto.MonthSettleAmtUpdateDto;
import com.cq.hd.order.api.dto.MonthSettleBillDto;
import com.cq.hd.order.api.dto.MonthSettleGroupKeyDto;
import com.cq.hd.order.api.vo.MonthSettleBillVo;
import com.cq.hd.order.po.TbMonthSettleBillPo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 月度结算单表 Mapper 接口
 * </p>
 *
 * @author much
 * @since 2024-04-11
 */
@Mapper
public interface TbMonthSettleBillMapper extends BaseMapper<TbMonthSettleBillPo> {

    TbMonthSettleBillPo selectLastOneByGroupKey(MonthSettleGroupKeyDto groupKeyDto);

    /**
     * 获取商户月度结算账单
     */
    List<MonthSettleBillVo> listByDto(MonthSettleBillDto monthSettleBillDto);

    int updateMonthSettleAmt(MonthSettleAmtUpdateDto monthSettleAmtUpdateDto);

}
